package com.bloveoacom.weichi.activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.bloveoacom.base.BaseActivity;
import com.bloveoacom.base.UserInfoBean;
import com.bloveoacom.weichi.R;
import com.bloveoacom.weight.LlkjToolBar;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * author: zhu.px
 * e-mail: 1271901673@qq.com
 * time  : 2018/5/28
 * desc  : 关注公众号
 */
public class WalletInfoActivity extends BaseActivity {


    @BindView(R.id.title_bar)
    LlkjToolBar titleBar;
    @BindView(R.id.tv_wallet_name)
    TextView tvWalletName;
    @BindView(R.id.tv_pub_key)
    TextView tvPubKey;
    @BindView(R.id.tv_pri_key)
    TextView tvPriKey;
    @Override
    public int getLayoutResId() {
        return R.layout.activity_wallet_info;
    }

    @Override
    public void initView() {
        tvWalletName.setText(UserInfoBean.getInstance().getWalletAccount());
        tvPriKey.setText(UserInfoBean.getInstance().getPrivateKey());
        tvPubKey.setText(UserInfoBean.getInstance().getPubilcKey());
        titleBar.setToolBar("账户信息",
                true, "", R.drawable.ic_back, true, "", R.drawable.ic_search);
    }



    @Override
    protected View getViewSetTB() {
        return titleBar;
    }
    @Override
    public void initData() {

    }

    @Override
    public void getBundleExtras(Bundle extras) {

    }


    @Override
    public void initListener() {

    }

    @OnClick(R.id.btn_sure)
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.btn_sure:
                finish();
                break;
        }
    }

}
